import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询任务项1列表
export function getTaskList(data,query) {
  return request({
    url: '/bussiness/task/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}
// 查询任务项详情
export function getTaskInfo(query) {
  return request({
    url: '/bussiness/task/info',
    method: 'get',
    params: query
  })
}

// 新增任务项
export function createTask(data) {
  return request({
    url: '/bussiness/task/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 修改任务项
export function editTask(data) {
  return request({
    url: '/bussiness/task/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除用户
export function deleteTask(taskId) {
  return request({
    url: '/bussiness/task/remove?ids=' + taskId,
    method: 'post',
    isEncrypt: false
  })
}



